/*
 * @description:
 * @author: cuicui
 * @Date: 2023-11-25 22:57:18
 * @LastEditTime: 2023-11-26 00:01:51
 * @LastEditors: cuicui
 */
import {
    OPEN_MENU_KEY,
    CURRENT_SELECT_APP,
    SELECT_MENU,
    CURRENT_PATH
} from '@/store/mutation-types'

const menu = {
  state: {
    selectMenu: '',
    currentSelectApp: '',
    openMenuKey: ''
  },
  mutations: {
    [OPEN_MENU_KEY]: (state, openMenuKey) => {
      state[OPEN_MENU_KEY] = openMenuKey
    },
    [CURRENT_SELECT_APP]: (state, currentSelectApp) => {
      state[CURRENT_SELECT_APP] = currentSelectApp
    },
    [SELECT_MENU]: (state, selectMenu) => {
      state[SELECT_MENU] = selectMenu
    },
    [CURRENT_PATH]: (state, currentPath) => {
      state[CURRENT_PATH] = currentPath
    }
  },
  actions: {
  }
}

export default menu
